package Book;

import Operation.IOperation;

import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 石方旭
 * Date: 2022-04-13
 * Time: 12:26
 */
public class BookList {
    Book[] book = new Book[100];//这个书架里有100本书籍
    public int usedSize = 0;//书架里存在多少本书籍
    public BookList() {
        book[0] = new Book("Java核心技术卷","霍斯特曼","编程书籍",149);
        book[1] = new Book("Java编程思想","埃克尔","编程书籍",189);
        book[2] = new Book("深入理解Java虚拟机","周志明","编程书籍",89);
        this.usedSize =3;
    }

    public int getUsedSize() {
        return usedSize;
    }

    public void setUsedSize(int usedSize) {
        this.usedSize = usedSize;
    }

    public Book getPos(int pos) {
        return this.book[pos];
    }

    public Book setPos(int pos,Book book) {
        return this.book[pos] = book;
    }
}
